<?php
require_once '../../../config/koneksi.php';
require_once '../../../config/class_paging_param.php';
require_once '../../../config/library.php';
?>
<link href="../../../asset/css/admin_style.css" type="text/css" rel="stylesheet">
<link href="../../../asset/css/paging.css" type="text/css" rel="stylesheet">
<script src="../../../asset/js/jquery-1.8.2.min.js"></script>
<?php
$id=$_GET['id_klaim'];
$sql="select * from klaim where id_klaim='$id'";
$qry=mysql_query($sql);
$hasil=mysql_fetch_array($qry);
if(isset($_POST['simpan'])){
	$ket=$_POST['keterangan'];
	$sql_update="update klaim set keterangan='$ket' where id_klaim='$id'";
	$qry_update=mysql_query($sql_update);
	$url_sukses='popup_keterangan.php?id_klaim='.$id;
	echo "<meta http-equiv='refresh' content='0; url=$url_sukses'>";
		exit;
}
?>
<form action="popup_keterangan.php?id_klaim=<?php echo $id;?>" method="post">

<table class="tabel2">
<tr>
<th colpsan="2">Edit Keterangan Klaim</th>
</tr>
<tr>
	<td>Keterangan</td>
	<td><textarea name="keterangan" cols="50" rows="7"><?php echo $hasil['keterangan']?></textarea>
</tr>
<tr>
	<td>&nbsp;</td>
	<td><input type="submit" name="simpan" value="Simpan" class="button" />
</tr>
</table>
</form>